<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2025/3/22
  Time: 11:36
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>用户信息</title>
</head>
<body>
<h2>用户信息详情</h2>
<c:if test="${empty user}">
    <p>请先<a href="login.jsp">登录</a></p>
</c:if>

<c:if test="${not empty user}">
    <table border="1">
        <tr><td>用户名:</td><td>${user.username}</td></tr>
        <tr><td>专业:</td><td>${user.major}</td></tr>
        <tr><td>年级:</td><td>${user.grade}</td></tr>
        <tr><td>班级:</td><td>${user.className}</td></tr>
        <tr><td>联系方式:</td><td>${user.phone}</td></tr>
        <tr><td>家庭住址:</td><td>${user.address}</td></tr>
        <tr><td>籍贯信息:</td><td>${user.origin}</td></tr>
    </table>
</c:if>
<a href="login.jsp">返回登录</a>
</body>
</html>
